<template>
  <div class="son">
    <h2>子组件</h2>
    <h3>老爹的钱：{{ money }}</h3>
    <SonSon></SonSon>
  </div>
</template>

<script>
import { inject } from 'vue'
import SonSon from './SonSon16.vue'
export default {
  components: { SonSon },
  setup() {
    // const value = inject('key')
    const money = inject('money')
    return { money }
  },
}
</script>

<style></style>
